package index5;

import java.awt.Dimension;

import java.awt.event.ActionListener;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JFrame;

public class Numero4
  extends JFrame
{
  public Numero4()
  {
    try
    {
      jbInit();
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
  }

  private void jbInit()
    throws Exception
  {
    this.getContentPane().setLayout( null );
    this.setSize( new Dimension(400, 300) );
    

    
  }
  private class EcouteurDeFenetre implements MouseListener
  {
    public void mouseClicked(MouseEvent e)
    {
      System.out.println(e.getButton());
      if (e.getButton()==3)
      {
        setVisible(false);
      }
      
    }

    public void mousePressed(MouseEvent e)
    {
    }

    public void mouseReleased(MouseEvent e)
    {
    }

    public void mouseEntered(MouseEvent e)
    {
    }

    public void mouseExited(MouseEvent e)
    {
    }
  }
}
